
# m3u8_url ="https://surrit.com/de395aa4-dd5f-43e6-820c-54c42c36b8d4/720p/video.m3u8"
#
# m3u8_url_t = m3u8_url[:m3u8_url.index("video")]
#
# print(m3u8_url_t) # https://surrit.com/de395aa4-dd5f-43e6-820c-54c42c36b8d4/720p/
#
# print(m3u8_url_t.split("/")[3])

# 查看文件加中是否包含某个文件


import  os

import platform
if platform.system() == "Windows": #Windows Linux
    ts_file_path = r'E:\1\BaiduSyncdisk'
    mp4_file_path = r'E:\1\BaiduSyncdisk'
else:
    ts_file_path = r'/video'
    mp4_file_path =  r'/video'

# for i in os.listdir(ts_file_path):
#     print(i)

print("c443bf9e-9623-4c08-ad08-ab0dbd3ee517.mp4" in os.listdir(ts_file_path))
print("c443bf9e-9623-4c08-ad08-ab0dbd3ee51" in os.listdir(ts_file_path))
